package com.study.easyexcel.business.dao;

import com.study.easyexcel.business.entity.Traveler;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuhuan
 * @date 2023/5/13
 */
@Repository
public class WorkDao {

    public void save(Traveler traveler) {
        System.out.println(traveler);
    }

    public void saveBatch(List<Traveler> travelers) {
        for (Traveler traveler : travelers) {
            System.out.println(traveler);
        }
    }
}
